class Sum {
	int n;
	float f() {
	float sum=0;
	for(int i=1;i<=n;i++)
	sum=sum+i;
	return sum;
	}
}
class Aver extends Sum {
	int n;
	float f() {
	float c;
	super.n=n;
	c=super.f();
	return c/n;
	}
	float g () {
	float c;
	c=super.f();
	return c/2;
	}
}
public class p122 {
public static void main(String args[]) {
	Aver aver=new Aver();
	aver.n=100;
	float resultOne=aver.f();
	float resultTwo=aver.g();
	System.out.println("resultOne="+resultOne);
	System.out.println("resultTwo="+resultTwo);
	}
}
